<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>welcome you！</h1>
    <script src="../static/libs/bootstrap.min.js"></script>
    <script src="../static/libs/jquery.min.js"></script>
    <script>
        var ele = getArgs();
        alert("加密后得车辆编码和厂家id="+ele.code);
        function getArgs( ) {
            var args = new Object( );
            var query = location.search.substring(1);
            var pairs = query.split("&");
            for(var i = 0; i < pairs.length; i++) {
                var pos = pairs[i].indexOf('=');
                if (pos == -1) continue;
                var argname = pairs[i].substring(0,pos);
                var value = pairs[i].substring(pos+1);
                value = decodeURIComponent(value);
                args[argname] = value;
            }
            return args;
        }
    </script>
</body>
</html>